﻿using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Collections;
using System.Data;
using System.ComponentModel;
using System.Data.OracleClient;
using WPFExcelReport.Helpers;
using WPFExcelReport.Controls;
using ReflectionStudio.Core.Events;
using System;
using System.Collections.Generic;
namespace WPFExcelReport
{
    public partial class VVRKOPF
    {
        public DataSet LOAD(Dictionary<string, object> pm)
        {

            dwData = TBMain.NewRow();
            dwData["VRKMANDANT"] = app.Mandant;
            dwData["VRKRENR"] = pm["RENR"].ToString();
            SResult = QueryVRKOPF(dwData, 1);
            return SResult;
        }
        public void Insert(DataRow _dwVRK)
        {
            DeleteVRKOPF(_dwVRK, 1);
            InsertVRKOPF(_dwVRK, app.company);
            TBMain.Rows.InsertAt(_dwVRK, 0);
        }

        public bool IsPrepared = false;

        public DataRow ResetBaseVR(Dictionary<string, object> pm)
        {

            DataRow dwVRMom = null;
            if (TBVRP.Rows.Count == 0)
                return dwVRMom;
            dwZB = null;
            string DELDATE = pm["DELDATE"].ToString();
            filter = "VKZAUFKRS='" + pm["KRS"].ToString() + "' AND VKZAUFLFD='" + pm["LFD"].ToString() + "' AND VKZAUFPOS='" + pm["POS"].ToString() + "'";
            rows = TBVKZ.Select(filter);
            foreach (DataRow row in rows)
            {
                dwZB = row;
            }
            filter = "VRPAUFKRS='" + pm["KRS"].ToString() + "' AND VRPAUFLFD='" + pm["LFD"].ToString() + "' AND VRPAUFPOS='" + pm["POS"].ToString() + "' AND VRPZOLLTNR='" + "0:100".PadRight(20) + "' ";
            sort = " VRPREPOS ASC ";
            rows = TBVRP.Select(filter, sort);
            if (rows.Length == 0)
            {
                return dwVRMom;
            }
            dwVRMom = rows[0];
            VRP.Calculate(dwVRMom, dwZB, (double)pm["QTY"]);
            if (DELDATE == "0")
                DELDATE = date;
            dwVRMom["VRPZFORMDAT"] = Helper.GetDateAddDays(DELDATE, (int)pm["LDDATE"]);
            VRP.UpdateVRPOS(dwVRMom, 0);
            //
            return dwVRMom;
        }

        DataTable TBVVT = null;
        DataTable TBVV = null;
        /// <summary>
        /// 1.	销售单行发货在VVT，这个是按照发货单来进行组织的。
        /// 2.	如果是全部发货，并且需要提货款，则按规则产生发票
        /// 3.	如果全部发货，但不需要提货款，产生尾款发票
        /// 4.	如果部分发货，不需要提货款，产生多个尾款发票。
        /// 5.	如果部分发货，需要提货款，则按照规则产生比例的发票金额。余下金额计入尾款。
        /// </summary>
        /// <param name="pm"></param> 

        public double CheckZABZBIN(Dictionary<string, object> pm, DataRow dwVRMom, string RENR, int paypal, double ratio, int days)
        {
            double value = 0;
            if (ratio == 0)
                return value;
            if (TBVRP.Rows.Count == 0)
                return value;
            DataRow dwVRP = null;
            string auftyp = pm["AUFTYP"].ToString();
            string ZOLLTNR = (paypal.ToString() + ":" + ratio).PadRight(20);
            double WAWERT = 0;
            double GESWERT = 0;
            //首先产生这个发票，然后根据发货单数量，更新发票金额

            WAWERT = 0.001 * Convert.ToDouble(dwVRMom["VRPWAWERT"].ToString());
            GESWERT = 0.001 * Convert.ToDouble(dwVRMom["VRPGESWERT"].ToString());

            filter = "VRPAUFKRS='" + pm["KRS"].ToString() + "' AND VRPAUFLFD='" + pm["LFD"].ToString() + "' AND VRPAUFPOS='" + pm["POS"].ToString()
            + "' AND VRPRENR='" + RENR + "' AND VRPZOLLTNR='" + ZOLLTNR + "'";
            sort = " VRPREPOS ASC ";
            rows = TBVRP.Select(filter, sort);
            if (rows.Length > 0)
            {
                dwVRP = rows[0];
            }
            else
            {
                IsNew = true;
                dwVRP = TBVRP.NewRow();
                filter = "VRPAUFKRS='" + pm["KRS"].ToString() + "' AND VRPAUFLFD='" + pm["LFD"].ToString() + "' AND VRPAUFPOS='" + pm["POS"].ToString() + "' AND VRPZOLLTNR='" + "0:100".PadRight(20) + "' ";
                rows = TBVRP.Select(filter, sort);
                dwVRP.ItemArray = rows[0].ItemArray;
                dwVRP["VRPZOLLTNR"] = ZOLLTNR;
                if (auftyp == "K")
                {
                    dwVRP["VRPAPOSTYP"] = "K+ ";
                }
                if (auftyp == "B")
                {
                    dwVRP["VRPAPOSTYP"] = "B- ";
                }
                VRP.GetPOS(dwVRP, 9);
                TBVRP.Rows.InsertAt(dwVRP, 0);
                VRP.InsertVRPOS(dwVRP, app.company);
            }
            if (dwVRP["VRPERLKZ"].ToString() == "J")//已经支付的不再处理
                return value;
            if (paypal == 1)
            {
                dwVRP["VRPWAWERT"] = Helper.Right("0000000000" + (WAWERT * 1000).ToString(), 10);//附加费考虑后的值 ;//净值
                value = Helpers.Helper.RoundX(WAWERT * ratio, 1);//这个就是首付款
                dwVRP["VRPGESWERT"] = Helper.Right("0000000000" + (value * 1000).ToString(), 10);//附加费考虑后的值
            }
            #region====CheckDueDate======
            dwVRP["VRPZFORMDAT"] = date;
            if (paypal == 3)
            {
                dwVRP["VRPZFORMDAT"] = Helper.GetDateAddDays(date, days);
                //VRPZFORMDAT 计划付款日期
                //VRPAEDATUM 实际付款日期
                //VRPVERSDAT//发货日期
                //VRPNEUD 创建日期
            }
            #endregion

            VRP.REMOVEADD(dwVRP);
            VRP.UpdateVRPOS(dwVRP, 0);
            return value;
        }

        public void RESTMOM(Dictionary<string, object> pm, DataRow dwVRMom)
        {
            double WAWERT = 0;
            double GESWERT = 0;
            WAWERT = 0.001 * Convert.ToDouble(dwVRMom["VRPWAWERT"].ToString());
            GESWERT = WAWERT + VRP.GETABADD(dwVRMom) - VRP.GETABREDUCT(dwVRMom);//应有的总价值，这里没有考虑实际的数量吗？ 

            #region===剩余待开票金额======
            filter = "VRPAUFKRS='" + pm["KRS"].ToString() + "' AND VRPAUFLFD='" + pm["LFD"].ToString() + "' AND VRPAUFPOS='" + pm["POS"].ToString() + "' AND VRPZOLLTNR not like'0:%'" + " AND VRPZOLLTNR not like'3:%'";
            rows = TBVRP.Select(filter, sort);
            double issued = 0;
            foreach (DataRow row in rows)
            {
                issued += 0.001 * Convert.ToDouble(row["VRPGESWERT"].ToString());
            }
            double leftvalue = GESWERT - issued;
            if (leftvalue < 0) leftvalue = 0;
            dwVRMom["VRPGESWERT"] = Helper.Right("0000000000" + (leftvalue * 1000).ToString(), 10);//附加费考虑后的值 (GESWERT - value) * 1000;
            VRP.UpdateVRPOS(dwVRMom, 0);
            #endregion
        }

        public void REFRESHVR(Dictionary<string, object> pm)
        {
            if (TBVRP == null) return;
            DataRow dwVRP = null; ;
            string RENR = pm["RENR"].ToString();
            string order = pm["ORDERNUM"].ToString();
            string _ZAHLBED = pm["ZAHLBED"].ToString();
            int paypal = (int)pm["PAYPAL"];
            foreach (DataRow row in TBVKP.Rows)
            {
                filter = "VRPRENR='" + RENR + "' AND VRPAUFKRS='" + row["VKPAUFKRS"].ToString() + "' AND VRPAUFLFD='" + row["VKPAUFLFD"].ToString() + "' AND VRPAUFPOS='" + row["VKPAUFPOS"].ToString() + "'";
                sort = " VRPREPOS DESC ";
                rows = TBVRP.Select(filter, sort);
                if (rows.Length == 0) continue;
                dwVRP = rows[0];
                double VRPGESWERT = 0;
                foreach (DataRow rowVRP in rows)
                {
                    VRPGESWERT += Convert.ToDouble(System.Convert.ToDouble(rowVRP["VRPGESWERT"].ToString()));
                }
                if (VKPPOSWERT > VRPGESWERT)
                {
                    dwVRP["VRPGESWERT"] = Convert.ToDouble(System.Convert.ToDouble(dwVRP["VRPGESWERT"].ToString())) + VKPPOSWERT - VRPGESWERT;
                    VRP.UpdateVRPOS(dwVRP, 0);
                }
            }
        }

        public void SplitByPT(Dictionary<string, object> pm, string RENR, int paypal)
        {
            PM["KRS"] = pm["KRS"].ToString();
            PM["LFD"] = pm["LFD"].ToString();
            PM["POS"] = pm["POS"].ToString();
            PM["WERT"] = pm["WERT"].ToString();
            PM["DELDATE"] = pm["DELDATE"].ToString();
            PM["QTY"] = pm["QTY"];
            PM["LDDATE"] = pm["LDDATE"];
            PM["ROW"] = pm["ROW"];
            DataRow dwVRMom = null;
            if (paypal == 1)
            {
                dwVRMom = ResetBaseVR(PM);//如果存在已经开票的，被误刷新了
            }
            ratio = 0.01 * 0.01 * Convert.ToDouble(dwZA["ZABZBIN" + paypal].ToString());
            if (ratio == 0)
            {
                if (paypal == 1)
                {
                    PM["KRS"] = pm["KRS"].ToString();
                    PM["LFD"] = pm["LFD"].ToString();
                    PM["POS"] = pm["POS"].ToString();
                    VKP.VKPPay(PM);
                }
                return;
            }
            if (paypal > 1)
            {
                filter = "VRPAUFKRS='" + pm["KRS"].ToString() + "' AND VRPAUFLFD='" + pm["LFD"].ToString() + "' AND VRPAUFPOS='" + pm["POS"].ToString() + "' AND VRPZOLLTNR='" + "0:100".PadRight(20) + "' ";
                sort = " VRPREPOS ASC ";
                rows = TBVRP.Select(filter, sort);
                if (rows.Length == 0)
                {
                    return;
                }
                dwVRMom = rows[0];
            }
            if (dwVRMom == null)
            {

                return;
            }

            double processed = CheckZABZBIN(PM, dwVRMom, RENR, paypal, ratio, (int)pm["LDDATE"]);
            if (paypal > 1)
            {
                if (processed > 0)
                {
                    //vkprow[""]
                }
            }
            RESTMOM(PM, dwVRMom);
        }

        public void VRPCM(Dictionary<string, object> pm)
        {
            try
            {
                PM["KRS"] = pm["KRS"];
                PM["LFD"] = pm["LFD"];
                PM["RENR"] = pm["RENR"];
                PM["ZAHLBED"] = pm["ZAHLBED"];
                PM["PAYPAL"] = pm["PAYPAL"];
                string auftyp = pm["AUFTYP"].ToString();
                DataRow dwVRP;
                if (auftyp == "K")
                {
                    PrepareVK(PM, true);
                }
                if (auftyp == "B")
                {
                    PrepareEK(PM, true);
                }
                filter = "VRPERLKZ=' ' AND (VRPZOLLTNR LIKE '3%' OR VRPZOLLTNR LIKE '2:%' OR VRPZOLLTNR LIKE '3:%')";
                rows = TBVRP.Select(filter);
                if (rows.Length > 0)
                {
                    throw new Exception("有未支付的款项" + rows.Length + "条，不能计算佣金");
                }
                filter = "VRPZOLLTNR LIKE '8%'";
                rows = TBVRP.Select(filter);
                foreach (DataRow row in rows)
                {
                    VRP.DeleteVRPOS(row, 1);
                    row.Delete();
                }
                TBVRP.AcceptChanges();
                filter = "VRPZOLLTNR='" + "0:100".PadRight(20) + "'";
                sort = " VRPREPOS ASC ";
                rows = TBVRP.Select(filter);
                string ZOLLTNR = "8:100 ";
                foreach (DataRow vrp in rows)
                {
                    IsNew = true;
                    for (int i = 1; i < 5; i++)
                    {
                        dwVRP = TBVRP.NewRow();
                        dwVRP.ItemArray = vrp.ItemArray;
                        dwVRP["VRPZOLLTNR"] = ZOLLTNR;
                        dwVRP["VRPARTKUNDNR"] = "00000000";
                        double value = Convert.ToDouble(dwVRP["VRPPROVA" + i].ToString());
                        if (value == 0) break;
                        dwVRP["VRPGESWERT"] = dwVRP["VRPPROVA" + i];
                        if (auftyp == "K")
                        {
                            dwVRP["VRPAPOSTYP"] = "C- ";
                            dwVRP["VRPVLIEFNR"] = dwVRP["VRPVERTNR" + i];//代理作为供应商
                        }
                        if (auftyp == "B")
                        {
                            dwVRP["VRPVLIEFNR"] = dwVRP["VRPVERTNR" + i];//代理作为供应商
                            dwVRP["VRPAPOSTYP"] = "C+ ";
                        }
                        VRP.GetPOS(dwVRP, 9);
                        //其他代理信息清空
                        for (int j = 1; j < 5; j++)
                        {
                            if (j == i) continue;
                            dwVRP["VRPVERTNR" + j] = "00000000";
                            dwVRP["VRPPROVP" + j] = 0;
                            dwVRP["VRPPROVA" + j] = 0;
                        }
                        TBVRP.Rows.InsertAt(dwVRP, 0);
                        VRP.InsertVRPOS(dwVRP, app.company);
                    }
                }
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
        }

        public void VRPBN(Dictionary<string, object> pm)
        {
            /*
             5.4.3 货款回笼系数D：以45天为标准，根据实际到账时间按下表取对应系值：
                天数	≤30天	45天	＞45天	＞60天	＞90天	＞120天	121天	＞150天	＞180天
                系数	1.00	0.90	0.8	0.6	0.4	0.2	0	-0.3	-0.5

             */
            try
            {
                PM["KRS"] = pm["KRS"];
                PM["LFD"] = pm["LFD"];
                PM["RENR"] = pm["RENR"];
                PM["ZAHLBED"] = pm["ZAHLBED"];
                PM["PAYPAL"] = pm["PAYPAL"];
                string auftyp = pm["AUFTYP"].ToString();
                DataRow dwVRP;
                if (auftyp == "K")
                {
                    PrepareVK(PM, true);
                }
                if (auftyp == "B")
                {
                    PrepareEK(PM, true);
                }
                filter = "VRPERLKZ=' ' AND VRPZOLLTNR LIKE '7:%'";
                rows = TBVRP.Select(filter);
                if (rows.Length == 0)
                {
                    throw new Exception("所有佣金已经计算" + rows.Length + "条，不能计算佣金");
                } 
                string ZOLLTNR = "8:100 ";
                foreach (DataRow vrp in rows)
                {
                    IsNew = true;
                    for (int i = 1; i < 5; i++)
                    {
                        dwVRP = TBVRP.NewRow();
                        dwVRP.ItemArray = vrp.ItemArray;
                        dwVRP["VRPZOLLTNR"] = ZOLLTNR;
                        dwVRP["VRPARTKUNDNR"] = "00000000";
                        double ratio = Convert.ToDouble(dwVRP["VRPPROVP" + i].ToString()) * 0.01 * 0.01;
                        double qty = Convert.ToDouble(dwVRP["VRPMENGE"].ToString()) * 0.01;
                        double value = ratio * qty;
                        if (value == 0) break;
                        dwVRP["VRPPROVA" + i] = value*1000;
                        dwVRP["VRPGESWERT"] = dwVRP["VRPPROVA" + i];
                        if (auftyp == "K")
                        {
                            dwVRP["VRPAPOSTYP"] = "C- ";
                            dwVRP["VRPVLIEFNR"] = dwVRP["VRPVERTNR" + i];//代理作为供应商
                        }
                        if (auftyp == "B")
                        {
                            dwVRP["VRPVLIEFNR"] = dwVRP["VRPVERTNR" + i];//代理作为供应商
                            dwVRP["VRPAPOSTYP"] = "C+ ";
                        }
                        VRP.GetPOS(dwVRP, 9);
                        //其他代理信息清空
                        for (int j = 1; j < 5; j++)
                        {
                            if (j == i) continue;
                            dwVRP["VRPVERTNR" + j] = "00000000";
                            dwVRP["VRPPROVP" + j] = 0;
                            dwVRP["VRPPROVA" + j] = 0;
                        }
                        dwVRP["VRPBONKZ"] = "N";
                        TBVRP.Rows.InsertAt(dwVRP, 0);
                        VRP.InsertVRPOS(dwVRP, app.company);
                    }
                    vrp["VRPERLKZ"] = "J";
                    VRP.UVRP03(vrp);
                }
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
        }
    } 
     
    public partial class VVRKOPF
    {
        VKDSTAMM _KD;
        public VKDSTAMM KD
        {
            get
            {
                if (_KD == null) _KD = new VKDSTAMM();
                return _KD;
            }
        }
        VZABED _ZA;
        public VZABED ZA
        {
            get
            {
                if (_ZA == null) _ZA = new VZABED();
                return _ZA;
            }
        }

        VEKPOS _EKP;
        public VEKPOS EKP
        {
            get
            {
                if (_EKP == null) _EKP = new VEKPOS();
                return _EKP;
            }
        }


        VVKPOS _VKP;
        public VVKPOS VKP
        {
            get
            {
                if (_VKP == null) _VKP = new VVKPOS();
                return _VKP;
            }
        }

        VVRPOS _VRP;
        public VVRPOS VRP
        {
            get
            {
                if (_VRP == null) _VRP = new VVRPOS();
                return _VRP;
            }
        }

        VEKKOPF _EKK;
        public VEKKOPF EKK
        {
            get
            {
                if (_EKK == null) _EKK = new VEKKOPF();
                return _EKK;
            }
        }


        VVKKOPF _VKK;
        public VVKKOPF VKK
        {
            get
            {
                if (_VKK == null) _VKK = new VVKKOPF();
                return _VKK;
            }
        }

        VVKZUAB _VZB;
        public VVKZUAB VZB
        {
            get
            {
                if (_VZB == null) _VZB = new VVKZUAB();
                return _VZB;
            }
        }

        VVVTLIEF _VVT;
        public VVVTLIEF VVT
        {
            get
            {
                if (_VVT == null) _VVT = new VVVTLIEF();
                return _VVT;
            }
        }

        VVVLIEF _VV;
        public VVVLIEF VV
        {
            get
            {
                if (_VV == null) _VV = new VVVLIEF();
                return _VV;
            }
        }
        public DataRow dwZA = null;
        public DataTable TBZA = null;
        public DataTable TBEKK = null;
        public DataTable TBVKK = null;
        public DataTable TBVRK = null;
        public DataTable TBVKP = null;
        public DataTable TBEKP = null;
        public DataTable TBVRP = null;
        public DataTable TBVKZ = null;
        public DataRow dwZB;

        public double VKPPOSWERT = 0;
        public double ratio = 0;
        //public DataRow dwBaseVRP = null;
        public double VRKZUAB { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKZUAB"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKZUAB"] = value; OnPropertyChanged("VRKZUAB", value); } } //lENGth 0
        public string VRKRENR { get { if (dwMaster == null) return ""; return dwMaster["VRKRENR"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKRENR"] = value; OnPropertyChanged("VRKRENR", value); } } //lENGth 8
        public string VRKAENB { get { if (dwMaster == null) return ""; return dwMaster["VRKAENB"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKAENB"] = value; OnPropertyChanged("VRKAENB", value); } } //lENGth 8
        public double VRKAEND { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKAEND"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKAEND"] = value; OnPropertyChanged("VRKAEND", value); } } //lENGth 0
        public string VRKNEUB { get { if (dwMaster == null) return ""; return dwMaster["VRKNEUB"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKNEUB"] = value; OnPropertyChanged("VRKNEUB", value); } } //lENGth 8
        public double VRKNEUD { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKNEUD"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKNEUD"] = value; OnPropertyChanged("VRKNEUD", value); } } //lENGth 0
        public string VRKKUNDNR { get { if (dwMaster == null) return ""; return dwMaster["VRKKUNDNR"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKKUNDNR"] = value; OnPropertyChanged("VRKKUNDNR", value); } } //lENGth 8
        public string VRKREART { get { if (dwMaster == null) return ""; return dwMaster["VRKREART"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKREART"] = value; OnPropertyChanged("VRKREART", value); } } //lENGth 2
        public double VRKREDAT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKREDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKREDAT"] = value; OnPropertyChanged("VRKREDAT", value); } } //lENGth 0
        public double VRKGESWERTN { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKGESWERTN"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKGESWERTN"] = value; OnPropertyChanged("VRKGESWERTN", value); } } //lENGth 0
        public double VRKWAWERT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKWAWERT"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKWAWERT"] = value; OnPropertyChanged("VRKWAWERT", value); } } //lENGth 0
        public string VRKZAHLBED { get { if (dwMaster == null) return ""; return dwMaster["VRKZAHLBED"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKZAHLBED"] = value; OnPropertyChanged("VRKZAHLBED", value); } } //lENGth 3
        public string VRKZESSION { get { if (dwMaster == null) return ""; return dwMaster["VRKZESSION"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKZESSION"] = value; OnPropertyChanged("VRKZESSION", value); } } //lENGth 1
        public string VRKVERBNR { get { if (dwMaster == null) return ""; return dwMaster["VRKVERBNR"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKVERBNR"] = value; OnPropertyChanged("VRKVERBNR", value); } } //lENGth 8


        /*
        public string VRKMANDANT { get { if (dwMaster == null) return ""; return dwMaster["VRKMANDANT"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKMANDANT"] = value; OnPropertyChanged("VRKMANDANT", value); } } //lENGth 2
        public double VRKAENZL { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKAENZL"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKAENZL"] = value; OnPropertyChanged("VRKAENZL", value); } } //lENGth 0
        public string VRKADRSL { get { if (dwMaster == null) return ""; return dwMaster["VRKADRSL"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKADRSL"] = value; OnPropertyChanged("VRKADRSL", value); } } //lENGth 8
        public double VRKVALUTA { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKVALUTA"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKVALUTA"] = value; OnPropertyChanged("VRKVALUTA", value); } } //lENGth 0
        public double VRKVALDAT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKVALDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKVALDAT"] = value; OnPropertyChanged("VRKVALDAT", value); } } //lENGth 0
        public string VRKWAEHRSL { get { if (dwMaster == null) return ""; return dwMaster["VRKWAEHRSL"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKWAEHRSL"] = value; OnPropertyChanged("VRKWAEHRSL", value); } } //lENGth 3
        public double VRKKURS { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKKURS"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKKURS"] = value; OnPropertyChanged("VRKKURS", value); } } //lENGth 0
        public double VRKBETRAG { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKBETRAG"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKBETRAG"] = value; OnPropertyChanged("VRKBETRAG", value); } } //lENGth 0
        public double VRKFRACHT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKFRACHT"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKFRACHT"] = value; OnPropertyChanged("VRKFRACHT", value); } } //lENGth 0
        public double VRKVERSICH { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKVERSICH"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKVERSICH"] = value; OnPropertyChanged("VRKVERSICH", value); } } //lENGth 0
        public double VRKVERPKO { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKVERPKO"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKVERPKO"] = value; OnPropertyChanged("VRKVERPKO", value); } } //lENGth 0
        public double VRKMWST { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKMWST"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKMWST"] = value; OnPropertyChanged("VRKMWST", value); } } //lENGth 0
        public double VRKGESWERTB { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKGESWERTB"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKGESWERTB"] = value; OnPropertyChanged("VRKGESWERTB", value); } } //lENGth 0
        public string VRKEKON { get { if (dwMaster == null) return ""; return dwMaster["VRKEKON"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKEKON"] = value; OnPropertyChanged("VRKEKON", value); } } //lENGth 8
        public double VRKFIBUDAT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKFIBUDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKFIBUDAT"] = value; OnPropertyChanged("VRKFIBUDAT", value); } } //lENGth 0
        public double VRKFIBUBELEG { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKFIBUBELEG"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKFIBUBELEG"] = value; OnPropertyChanged("VRKFIBUBELEG", value); } } //lENGth 0
        public string VRKFIBUKZ { get { if (dwMaster == null) return ""; return dwMaster["VRKFIBUKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKFIBUKZ"] = value; OnPropertyChanged("VRKFIBUKZ", value); } } //lENGth 1
        public double VRKZAHLDAT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKZAHLDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKZAHLDAT"] = value; OnPropertyChanged("VRKZAHLDAT", value); } } //lENGth 0
        public double VRKZAHLBTR { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKZAHLBTR"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKZAHLBTR"] = value; OnPropertyChanged("VRKZAHLBTR", value); } } //lENGth 0
        public string VRKKOMPL { get { if (dwMaster == null) return ""; return dwMaster["VRKKOMPL"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKKOMPL"] = value; OnPropertyChanged("VRKKOMPL", value); } } //lENGth 1
        public double VRKFAELLIG { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKFAELLIG"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKFAELLIG"] = value; OnPropertyChanged("VRKFAELLIG", value); } } //lENGth 0
        public string VRKVB { get { if (dwMaster == null) return ""; return dwMaster["VRKVB"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKVB"] = value; OnPropertyChanged("VRKVB", value); } } //lENGth 3
        public string VRKSTUFE { get { if (dwMaster == null) return ""; return dwMaster["VRKSTUFE"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKSTUFE"] = value; OnPropertyChanged("VRKSTUFE", value); } } //lENGth 1
        public string VRKAUFTYP { get { if (dwMaster == null) return ""; return dwMaster["VRKAUFTYP"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKAUFTYP"] = value; OnPropertyChanged("VRKAUFTYP", value); } } //lENGth 1
        public string VRKKZINLEXP { get { if (dwMaster == null) return ""; return dwMaster["VRKKZINLEXP"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKKZINLEXP"] = value; OnPropertyChanged("VRKKZINLEXP", value); } } //lENGth 1
        public string VRKLPOS { get { if (dwMaster == null) return ""; return dwMaster["VRKLPOS"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKLPOS"] = value; OnPropertyChanged("VRKLPOS", value); } } //lENGth 3
        public string VRKDRKZ { get { if (dwMaster == null) return ""; return dwMaster["VRKDRKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKDRKZ"] = value; OnPropertyChanged("VRKDRKZ", value); } } //lENGth 1
        public string VRKUMSATZ { get { if (dwMaster == null) return ""; return dwMaster["VRKUMSATZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKUMSATZ"] = value; OnPropertyChanged("VRKUMSATZ", value); } } //lENGth 1
        public string VRKKUNDNRVK { get { if (dwMaster == null) return ""; return dwMaster["VRKKUNDNRVK"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKKUNDNRVK"] = value; OnPropertyChanged("VRKKUNDNRVK", value); } } //lENGth 8
        public string VRKADRSLVK { get { if (dwMaster == null) return ""; return dwMaster["VRKADRSLVK"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKADRSLVK"] = value; OnPropertyChanged("VRKADRSLVK", value); } } //lENGth 8
        public string VRKSOFORT { get { if (dwMaster == null) return ""; return dwMaster["VRKSOFORT"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKSOFORT"] = value; OnPropertyChanged("VRKSOFORT", value); } } //lENGth 1
        public string VRKAKKREDNR { get { if (dwMaster == null) return ""; return dwMaster["VRKAKKREDNR"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKAKKREDNR"] = value; OnPropertyChanged("VRKAKKREDNR", value); } } //lENGth 20
        public string VRKSACHBE { get { if (dwMaster == null) return ""; return dwMaster["VRKSACHBE"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKSACHBE"] = value; OnPropertyChanged("VRKSACHBE", value); } } //lENGth 8
        public string VRKBENID { get { if (dwMaster == null) return ""; return dwMaster["VRKBENID"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKBENID"] = value; OnPropertyChanged("VRKBENID", value); } } //lENGth 8
        public string VRKAUFTNR { get { if (dwMaster == null) return ""; return dwMaster["VRKAUFTNR"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKAUFTNR"] = value; OnPropertyChanged("VRKAUFTNR", value); } } //lENGth 4
        public double VRKSKTOP { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKSKTOP"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKSKTOP"] = value; OnPropertyChanged("VRKSKTOP", value); } } //lENGth 0
        public double VRKSKTOBP { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKSKTOBP"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKSKTOBP"] = value; OnPropertyChanged("VRKSKTOBP", value); } } //lENGth 0
        public string VRKBELKRS { get { if (dwMaster == null) return ""; return dwMaster["VRKBELKRS"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKBELKRS"] = value; OnPropertyChanged("VRKBELKRS", value); } } //lENGth 3
        public double VRKMWSTAB { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKMWSTAB"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKMWSTAB"] = value; OnPropertyChanged("VRKMWSTAB", value); } } //lENGth 0
        public double VRKREGMWST { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKREGMWST"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKREGMWST"] = value; OnPropertyChanged("VRKREGMWST", value); } } //lENGth 0
        public double VRKREGMWSTAB { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKREGMWSTAB"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKREGMWSTAB"] = value; OnPropertyChanged("VRKREGMWSTAB", value); } } //lENGth 0
        public string VRKHWAEHRSL { get { if (dwMaster == null) return ""; return dwMaster["VRKHWAEHRSL"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKHWAEHRSL"] = value; OnPropertyChanged("VRKHWAEHRSL", value); } } //lENGth 3
        public double VRKHEUROKURS { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKHEUROKURS"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKHEUROKURS"] = value; OnPropertyChanged("VRKHEUROKURS", value); } } //lENGth 0
        public string VRKHEUROKURSVK { get { if (dwMaster == null) return ""; return dwMaster["VRKHEUROKURSVK"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKHEUROKURSVK"] = value; OnPropertyChanged("VRKHEUROKURSVK", value); } } //lENGth 1
        public double VRKFEUROKURS { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKFEUROKURS"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKFEUROKURS"] = value; OnPropertyChanged("VRKFEUROKURS", value); } } //lENGth 0
        public string VRKFEUROKURSVK { get { if (dwMaster == null) return ""; return dwMaster["VRKFEUROKURSVK"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKFEUROKURSVK"] = value; OnPropertyChanged("VRKFEUROKURSVK", value); } } //lENGth 1
        public string VRKNAME1 { get { if (dwMaster == null) return ""; return dwMaster["VRKNAME1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKNAME1"] = value; OnPropertyChanged("VRKNAME1", value); } } //lENGth 40
        public string VRKNAME2 { get { if (dwMaster == null) return ""; return dwMaster["VRKNAME2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKNAME2"] = value; OnPropertyChanged("VRKNAME2", value); } } //lENGth 40
        public string VRKSTRASSE1 { get { if (dwMaster == null) return ""; return dwMaster["VRKSTRASSE1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKSTRASSE1"] = value; OnPropertyChanged("VRKSTRASSE1", value); } } //lENGth 40
        public string VRKSTRASSE2 { get { if (dwMaster == null) return ""; return dwMaster["VRKSTRASSE2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKSTRASSE2"] = value; OnPropertyChanged("VRKSTRASSE2", value); } } //lENGth 40
        public string VRKLKZ { get { if (dwMaster == null) return ""; return dwMaster["VRKLKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKLKZ"] = value; OnPropertyChanged("VRKLKZ", value); } } //lENGth 3
        public string VRKPLZPF { get { if (dwMaster == null) return ""; return dwMaster["VRKPLZPF"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKPLZPF"] = value; OnPropertyChanged("VRKPLZPF", value); } } //lENGth 12
        public string VRKPOSTF { get { if (dwMaster == null) return ""; return dwMaster["VRKPOSTF"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKPOSTF"] = value; OnPropertyChanged("VRKPOSTF", value); } } //lENGth 15
        public string VRKPLZ { get { if (dwMaster == null) return ""; return dwMaster["VRKPLZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKPLZ"] = value; OnPropertyChanged("VRKPLZ", value); } } //lENGth 12
        public string VRKORT { get { if (dwMaster == null) return ""; return dwMaster["VRKORT"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKORT"] = value; OnPropertyChanged("VRKORT", value); } } //lENGth 40
        public string VRKBZ { get { if (dwMaster == null) return ""; return dwMaster["VRKBZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKBZ"] = value; OnPropertyChanged("VRKBZ", value); } } //lENGth 2
        public string VRKBZBEZ { get { if (dwMaster == null) return ""; return dwMaster["VRKBZBEZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKBZBEZ"] = value; OnPropertyChanged("VRKBZBEZ", value); } } //lENGth 13
        public string VRKCOUNTY { get { if (dwMaster == null) return ""; return dwMaster["VRKCOUNTY"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKCOUNTY"] = value; OnPropertyChanged("VRKCOUNTY", value); } } //lENGth 4
        public string VRKCITY { get { if (dwMaster == null) return ""; return dwMaster["VRKCITY"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKCITY"] = value; OnPropertyChanged("VRKCITY", value); } } //lENGth 4
        public string VRKANSPNA { get { if (dwMaster == null) return ""; return dwMaster["VRKANSPNA"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKANSPNA"] = value; OnPropertyChanged("VRKANSPNA", value); } } //lENGth 40
        public string VRKABZUGKZ { get { if (dwMaster == null) return ""; return dwMaster["VRKABZUGKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKABZUGKZ"] = value; OnPropertyChanged("VRKABZUGKZ", value); } } //lENGth 1
        public double VRKABZUGDAT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKABZUGDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKABZUGDAT"] = value; OnPropertyChanged("VRKABZUGDAT", value); } } //lENGth 0
        public string VRKUEBKZ { get { if (dwMaster == null) return ""; return dwMaster["VRKUEBKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKUEBKZ"] = value; OnPropertyChanged("VRKUEBKZ", value); } } //lENGth 1
        public double VRKRLNR { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKRLNR"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKRLNR"] = value; OnPropertyChanged("VRKRLNR", value); } } //lENGth 0
        public double VRKRLDAT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKRLDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKRLDAT"] = value; OnPropertyChanged("VRKRLDAT", value); } } //lENGth 0
        public string VRKARCHKZ { get { if (dwMaster == null) return ""; return dwMaster["VRKARCHKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKARCHKZ"] = value; OnPropertyChanged("VRKARCHKZ", value); } } //lENGth 1
        public double VRKARCHDAT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKARCHDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKARCHDAT"] = value; OnPropertyChanged("VRKARCHDAT", value); } } //lENGth 0
        public double VRKARCHBEL { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKARCHBEL"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKARCHBEL"] = value; OnPropertyChanged("VRKARCHBEL", value); } } //lENGth 0
        public string VRKFOB { get { if (dwMaster == null) return ""; return dwMaster["VRKFOB"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKFOB"] = value; OnPropertyChanged("VRKFOB", value); } } //lENGth 1
        public double VRKFOBAM { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKFOBAM"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKFOBAM"] = value; OnPropertyChanged("VRKFOBAM", value); } } //lENGth 0
        public double VRKGVRDICU { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKGVRDICU"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKGVRDICU"] = value; OnPropertyChanged("VRKGVRDICU", value); } } //lENGth 0
        public double VRKGVRD { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKGVRD"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKGVRD"] = value; OnPropertyChanged("VRKGVRD", value); } } //lENGth 0
        public double VRKRDOFFAM { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKRDOFFAM"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKRDOFFAM"] = value; OnPropertyChanged("VRKRDOFFAM", value); } } //lENGth 0
        public string VRKADINVNO { get { if (dwMaster == null) return ""; return dwMaster["VRKADINVNO"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKADINVNO"] = value; OnPropertyChanged("VRKADINVNO", value); } } //lENGth 12
        public double VRKMENGE1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKMENGE1"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKMENGE1"] = value; OnPropertyChanged("VRKMENGE1", value); } } //lENGth 0
        public double VRKMENGE2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKMENGE2"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKMENGE2"] = value; OnPropertyChanged("VRKMENGE2", value); } } //lENGth 0
        public double VRKMENGE3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKMENGE3"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKMENGE3"] = value; OnPropertyChanged("VRKMENGE3", value); } } //lENGth 0
        public double VRKMENGE4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKMENGE4"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKMENGE4"] = value; OnPropertyChanged("VRKMENGE4", value); } } //lENGth 0
        public string VRKMWSTSL { get { if (dwMaster == null) return ""; return dwMaster["VRKMWSTSL"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKMWSTSL"] = value; OnPropertyChanged("VRKMWSTSL", value); } } //lENGth 3
        public string VRKWRAUM { get { if (dwMaster == null) return ""; return dwMaster["VRKWRAUM"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKWRAUM"] = value; OnPropertyChanged("VRKWRAUM", value); } } //lENGth 8
        public string VRKOHNEREF { get { if (dwMaster == null) return ""; return dwMaster["VRKOHNEREF"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKOHNEREF"] = value; OnPropertyChanged("VRKOHNEREF", value); } } //lENGth 1
        public string VRKVAEAKZ { get { if (dwMaster == null) return ""; return dwMaster["VRKVAEAKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKVAEAKZ"] = value; OnPropertyChanged("VRKVAEAKZ", value); } } //lENGth 1
        public string VRKKREDKDNR { get { if (dwMaster == null) return ""; return dwMaster["VRKKREDKDNR"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKKREDKDNR"] = value; OnPropertyChanged("VRKKREDKDNR", value); } } //lENGth 8
        public string VRKCOVBETRAG { get { if (dwMaster == null) return ""; return dwMaster["VRKCOVBETRAG"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKCOVBETRAG"] = value; OnPropertyChanged("VRKCOVBETRAG", value); } } //lENGth 10
        public double VRKFAELLIGN { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKFAELLIGN"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKFAELLIGN"] = value; OnPropertyChanged("VRKFAELLIGN", value); } } //lENGth 0
        public double VRKNOPAYDAT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKNOPAYDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKNOPAYDAT"] = value; OnPropertyChanged("VRKNOPAYDAT", value); } } //lENGth 0
        public string VRKNOKREDVERS { get { if (dwMaster == null) return ""; return dwMaster["VRKNOKREDVERS"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKNOKREDVERS"] = value; OnPropertyChanged("VRKNOKREDVERS", value); } } //lENGth 1
        public double VRKKREDLIM1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKKREDLIM1"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKKREDLIM1"] = value; OnPropertyChanged("VRKKREDLIM1", value); } } //lENGth 0
        public string VRKVERS1 { get { if (dwMaster == null) return ""; return dwMaster["VRKVERS1"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKVERS1"] = value; OnPropertyChanged("VRKVERS1", value); } } //lENGth 2
        public string VRKVERS21 { get { if (dwMaster == null) return ""; return dwMaster["VRKVERS21"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKVERS21"] = value; OnPropertyChanged("VRKVERS21", value); } } //lENGth 2
        public double VRKKREDLIM2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKKREDLIM2"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKKREDLIM2"] = value; OnPropertyChanged("VRKKREDLIM2", value); } } //lENGth 0
        public string VRKVERS2 { get { if (dwMaster == null) return ""; return dwMaster["VRKVERS2"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKVERS2"] = value; OnPropertyChanged("VRKVERS2", value); } } //lENGth 2
        public string VRKVERS22 { get { if (dwMaster == null) return ""; return dwMaster["VRKVERS22"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKVERS22"] = value; OnPropertyChanged("VRKVERS22", value); } } //lENGth 2
        public double VRKKREDLIM3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKKREDLIM3"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKKREDLIM3"] = value; OnPropertyChanged("VRKKREDLIM3", value); } } //lENGth 0
        public string VRKVERS3 { get { if (dwMaster == null) return ""; return dwMaster["VRKVERS3"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKVERS3"] = value; OnPropertyChanged("VRKVERS3", value); } } //lENGth 2
        public string VRKVERS23 { get { if (dwMaster == null) return ""; return dwMaster["VRKVERS23"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKVERS23"] = value; OnPropertyChanged("VRKVERS23", value); } } //lENGth 2
        public double VRKKREDLIM4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKKREDLIM4"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKKREDLIM4"] = value; OnPropertyChanged("VRKKREDLIM4", value); } } //lENGth 0
        public string VRKVERS4 { get { if (dwMaster == null) return ""; return dwMaster["VRKVERS4"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKVERS4"] = value; OnPropertyChanged("VRKVERS4", value); } } //lENGth 2
        public string VRKVERS24 { get { if (dwMaster == null) return ""; return dwMaster["VRKVERS24"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKVERS24"] = value; OnPropertyChanged("VRKVERS24", value); } } //lENGth 2
        public double VRKKREDLIM5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["VRKKREDLIM5"].ToString()); } set { if (dwMaster == null) return; dwMaster["VRKKREDLIM5"] = value; OnPropertyChanged("VRKKREDLIM5", value); } } //lENGth 0
        public string VRKVERS5 { get { if (dwMaster == null) return ""; return dwMaster["VRKVERS5"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKVERS5"] = value; OnPropertyChanged("VRKVERS5", value); } } //lENGth 2
        public string VRKVERS25 { get { if (dwMaster == null) return ""; return dwMaster["VRKVERS25"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKVERS25"] = value; OnPropertyChanged("VRKVERS25", value); } } //lENGth 2
        public string VRKREU { get { if (dwMaster == null) return ""; return dwMaster["VRKREU"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKREU"] = value; OnPropertyChanged("VRKREU", value); } } //lENGth 2
        public string VRKMWSTID { get { if (dwMaster == null) return ""; return dwMaster["VRKMWSTID"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKMWSTID"] = value; OnPropertyChanged("VRKMWSTID", value); } } //lENGth 20
        public string VRKFILLER { get { if (dwMaster == null) return ""; return dwMaster["VRKFILLER"].ToString(); } set { if (dwMaster == null) return; dwMaster["VRKFILLER"] = value; OnPropertyChanged("VRKFILLER", value); } } //lENGth 80
        */
    }
}
